import { common_utils } from "../utils/utils"

export var itemService = {
    getItems: function (productId, ok) {
        common_utils.request({
            url: "products/" + productId + "/items",
            method: "GET",
            success: ok,
            data: null
        });
    },

    getItemInfo: function (itemId, ok) {
        common_utils.request({
            url: "products/1/items/" + itemId,
            method: "GET",
            success: ok,
            data: null
        });
    }


}
